﻿Imports FL_8x0.Common
Imports FL_8x0.Model
Imports GalaSoft.MvvmLight
Imports GalaSoft.MvvmLight.CommandWpf

Namespace FL_8x0.Viewmodel

    Public Class ObationKeyViewModel
        Inherits ViewModelBase

        Public Sub New()
            ObationKeyCommand = New RelayCommand(Sub()
                                                     System.Windows.MessageBox.Show("暂不支持在线获取")
                                                 End Sub)
            InfoModelEmail = New SoftwareInfo()
            InfoModelEmail.Name = ""
            InfoModelEmail.Mac = MacUtil.GetId()
            InfoModelEmail.SoftwareName = "Fl-830"
            InfoModelEmail.Version = "1.0.0"
        End Sub


        Private _infoModelOnline As SoftwareInfo

        Public Property InfoModelOnline() As SoftwareInfo
            Get
                Return _infoModelOnline
            End Get
            Set(ByVal value As SoftwareInfo)
                _infoModelOnline = value
            End Set
        End Property

        Private _infoModelEmail As SoftwareInfo

        Public Property InfoModelEmail() As SoftwareInfo
            Get
                Return _infoModelEmail
            End Get
            Set(ByVal value As SoftwareInfo)
                _infoModelEmail = value
                RaisePropertyChanged()
            End Set
        End Property


        Private _obationKeyCommand As RelayCommand


        Public Property ObationKeyCommand() As RelayCommand
            Get
                Return _obationKeyCommand
            End Get
            Set(ByVal value As RelayCommand)
                _obationKeyCommand = value
            End Set
        End Property


    End Class
End Namespace